package com.corpgovernment.organization.event;

import com.ctrip.corp.obt.generic.core.event.Event;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EmployeeActionEvent extends Event {

    /**
     * 本次操作员工集合
     */
    private List<String> uidList;
    /**
     * 组织id
     */
    private String orgId;

    /**
     * 操作类型
     */
    private String actionType;

    @Data
    public static class OpenCardAction{
        /**
         * 新增
         */
        public static final String ACTION_ADD = "add";
        /**
         * 修改
         */
        public static final String ACTION_UPDATE = "update";
        /**
         * 删除
         */
        public static final String ACTION_DELETE = "delete";
        /**
         * excel导入
         */
        public static final String ACTION_EXCEL = "excel";
        /**
         * 补偿
         */
        public static final String ACTION_REDRESS = "redress";
    }
}
